#include<stdio.h>
int main_041() {
	enum {
		Alpha,
		Number,
		Space,
		Other
	};
	int cnt[Other + 1] = { 0 };
	char a[255] = { NULL };
	gets(a);
	int i = 0;
	while (a[i] != '\0') {
		if ((a[i] >= 65 && a[i] <= 90) || (a[i] >= 97 && a[i] <= 122)) {
			cnt[Alpha]++;
		}
		else if (a[i] >= 48 && a[i] <= 57) {
			cnt[Number]++;
		}
		else if (a[i] == 32) {
			cnt[Space]++;
		}
		else {
			cnt[Other]++;
		}
		i++;
	}
	printf("Alpha:%d\nNumber:%d\nSpace:%d\nOther:%d\n", cnt[Alpha], cnt[Number], cnt[Space], cnt[Other]);
	return 0;
}